package com.bookStore.model;

import java.math.BigDecimal;
import java.util.HashSet;
import java.util.Set;

/**
 * Users entity. @author MyEclipse Persistence Tools
 */

public class Users implements java.io.Serializable {

	// Fields

	private Integer id;
	private String loginId;
	private String loginPwd;
	private String name;
	private String address;
	private String phone;
	private String mail;
	private BigDecimal userRoleId;
	private BigDecimal userStateId;
	private Set orderses = new HashSet(0);

	// Constructors

	/** default constructor */
	public Users() {
	}

	/** minimal constructor */
	public Users(Integer id, String loginId, String loginPwd, String name,
			String address, String phone, String mail, BigDecimal userRoleId,
			BigDecimal userStateId) {
		this.id = id;
		this.loginId = loginId;
		this.loginPwd = loginPwd;
		this.name = name;
		this.address = address;
		this.phone = phone;
		this.mail = mail;
		this.userRoleId = userRoleId;
		this.userStateId = userStateId;
	}

	/** full constructor */
	public Users(Integer id, String loginId, String loginPwd, String name,
			String address, String phone, String mail, BigDecimal userRoleId,
			BigDecimal userStateId, Set orderses) {
		this.id = id;
		this.loginId = loginId;
		this.loginPwd = loginPwd;
		this.name = name;
		this.address = address;
		this.phone = phone;
		this.mail = mail;
		this.userRoleId = userRoleId;
		this.userStateId = userStateId;
		this.orderses = orderses;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getLoginId() {
		return this.loginId;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	public String getLoginPwd() {
		return this.loginPwd;
	}

	public void setLoginPwd(String loginPwd) {
		this.loginPwd = loginPwd;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getMail() {
		return this.mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public BigDecimal getUserRoleId() {
		return this.userRoleId;
	}

	public void setUserRoleId(BigDecimal userRoleId) {
		this.userRoleId = userRoleId;
	}

	public BigDecimal getUserStateId() {
		return this.userStateId;
	}

	public void setUserStateId(BigDecimal userStateId) {
		this.userStateId = userStateId;
	}

	public Set getOrderses() {
		return this.orderses;
	}

	public void setOrderses(Set orderses) {
		this.orderses = orderses;
	}

}